<?php
/*
 * jQuery File Upload Plugin PHP Example 5.14
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2010, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

error_reporting(E_ALL | E_STRICT);
require('UploadHandler.php');
$upload_handler = new UploadHandler();

if(!empty($_POST['data'])){
	$data = $_POST['data'];
	$fname =  "albumInfo.txt";//generates random name

	$file = fopen($fname, 'a');//creates new file
	fwrite($file, $data);
	fclose($file);
}
